function Student(name,age){
    this.name=name;
    this.age=age;
    
}
Student.prototype.show=function(){
        alert(this.name+"的年龄是"+this.age);
    }

var renronglei=new Student('任容磊',11);

renronglei.show();

var renronglei2=new Student('任容磊',81);
renronglei2.show=function(){
    alert("姓名是"+this.name+",的年龄是"+this.age);
}
renronglei2.show();


var rrl={
    name:"张三",
    age:20,
    sex:"男",
    show:function(){
        alert("666");
    }
    
    }
for	(var x in rrl){
    console.log(x+"="+rrl[x]);
}

var txt ="我是\"JavaScript,\"JavaScript是一门弱类型语言"
			console.log(txt);
			console.log(txt.indexOf("Java"));
			
			console.log(txt.slice(15,25));
			
			console.log(txt.substr(28));
			
			console.log(txt.replace("JavaScript","张三"));
			
			var oo = txt.substring(0,16);
			var zz = txt.substring(16,26);
			var cc = txt.substring(27);

			console.log(oo+zz.toUpperCase()+cc);



